package br.com.sysmagnus.bean;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;

import br.com.sysmagnus.entity.HospedeEntity;
import br.com.sysmagnus.repository.HospedeFacade;

@ManagedBean(name="hospede")
@RequestScoped
public class HospedeBean {
	
	
	
	@EJB
	private HospedeFacade hospedefacade;
	

	private HospedeEntity hospede;
	
	public HospedeBean(){
		this.hospede = new HospedeEntity();
		
	}
	
	public HospedeEntity getHospedeEntity(){
		return hospede;
		
	}

	
	public void create(){
	this.hospedefacade.create(hospede);
	
	}
	
	
	


}
